const { defineConfig } = require('@vue/cli-service')
const path=require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    proxy:{
      '/api':{
        target:"http://back.9yuecloud.com/admin",
        change:true,
        pathRewrite:{
          '^/api':''
        }
      }
    }
  },
   configureWebpack:{
     resolve:{
      alias:{
        "com":path.resolve(__dirname,'./src/components'),
        "api":path.resolve(__dirname,'./src/api'),
        "lay":path.resolve(__dirname,'./src/layouts'),
        "uti":path.resolve(__dirname,'./src/utils'),
        "view":path.resolve(__dirname,'./src/views')
      }
     }
   }
})
